package com.sspaas.manage.web.controller;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.sspaas.manage.pojo.Api;
import com.sspaas.manage.service.IApiService;

@Controller
@RequestMapping(value="/api")
public class ApiCtrl {
	
	@Autowired
	private IApiService apiService;
	
	@RequestMapping(value="/addApi",method=RequestMethod.POST)
	public void addApi(HttpServletRequest request,HttpServletResponse response,Api api){
		apiService.insert(api);
	}
}
